package entity;

import annation.Colunm;
import annation.Key;
import annation.Table;

import java.util.ArrayList;

/**
 * @author zsy
 * @Description:
 * @create 2018-01-04 11:23
 **/
@Table(fileName = "./excel/表格.xlsx", sheetName = "Sheet1")
public class People {

    @Key
    @Colunm(name = "id")
    public int id;

    @Colunm(name = "姓名")
    public String name;

    @Colunm(name = "年龄")
    public int age;

    @Colunm(name = "性别")
    public String sex;

    @Colunm(name = "list")
    public ArrayList<Double> list;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("People{");
        sb.append("id=").append(id).append("\n");
        sb.append("name='").append(name).append("\'\n");
        sb.append("age=").append(age).append("\n");
        sb.append("sex='").append(sex).append("\'\n");
        sb.append("list=").append(list).append("\n");
        sb.append('}');
        return sb.toString();
    }
}
